import request from '@/utils/http'

// 查看所有运动信息字典
export const query_all_sport = () => {
  return request.get({
    url: '/api/sport/info/all/sport'
    // data: params
  })
}
// 查看个人运动信息
export const query_get_sport = (params: any) => {
  return request.get({
    url: '/api/sport/info/get/' + params.empi + '/' + params.date
    // data: params
  })
}
// 近一个月运动信息
export const query_mouth_sport = (params: any) => {
  return request.get({
    url: '/api/sport/info/get/' + params.empi + '/' + params.start + '/' + params.end
    // data: params
  })
}
// 运动信息录入
export const save_sport = (params: any) => {
  return request.post({
    url: '/api/sport/info/save',
    data: params
  })
}
// 运动信息编辑
export const update_sport = (params: any) => {
  return request.post({
    url: '/api/sport/info/update',
    data: params
  })
}
// 运动信息编辑
export const delete_sport = (params: any) => {
  return request.get({
    url: '/api/sport/info/delete/' + params
    // data: params
  })
}
